[IA64] zero clear page for pgd, pmd, pte.
authorawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Thu, 9 Feb 2006 20:43:39 +0000 (13:43 -0700)
committerawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Thu, 9 Feb 2006 20:43:39 +0000 (13:43 -0700)
xen heap page are not always zero cleared, so that explicit zeroing
is needed.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/arch/ia64/xen/xenmisc.c

index e73fab753eaa76839b55339ad1fb549e4c5db268..923f254ad44134df8e059235b1a224695841728c 100644 (file)
@@ -168,7 +168,11 @@ void __free_pages(struct page *page, unsigned int order)
 
 void *pgtable_quicklist_alloc(void)
 {
-       return alloc_xenheap_pages(0);
+    void *p;
+    p = alloc_xenheap_pages(0);
+    if (p) 
+        clear_page(p);
+    return p;
 }
 
 void pgtable_quicklist_free(void *pgtable_entry)